﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrainTicket
{
    // {"validateMessagesShowId":"_validatorMessage","status":true,"httpstatus":200,"data":{"loginCheck":"Y"},"messages":[],"validateMessages":{}}
    public class QueryResultBase
    {
        public string validateMessagesShowId { get; set; }
        public bool status { get; set; }
        public byte httpstatus { get; set; }
        public List<string> messages {get; set;}
        public object validateMessages{get; set;}
    }

    public class QueryTicketResult : QueryResultBase
    {
        public List<OneTicketItem> data { get; set; }
    }

    public class LoginResult: QueryResultBase
    {
        public LoginChecking data { get; set; }
    }

    public class RandomCodeCheckingResult : QueryResultBase
    {
        public string data { get; set; }
    }


    public class LoginChecking
    {
        public string loginCheck { get; set; }
    }

    public class OneTicketItem
    {
        public string buttonTextInfo{get; set;}
        public string secretStr{get; set;}
        public TicketInfo queryLeftNewDTO { get; set; }
        //public object queryLeftNewDTO { get; set; }

    }

    // {"train_no":"550000L56600","station_train_code":"L566","start_station_telecode":"SHH","start_station_name":"上海","end_station_telecode":"XUN","end_station_name":"信阳","from_station_telecode":"SHH","from_station_name":"上海","to_station_telecode":"HFH","to_station_name":"合肥","start_time":"03:04","arrive_time":"08:06","day_difference":"0","train_class_name":"","lishi":"05:02","canWebBuy":"N","lishiValue":"302","yp_info":"100385000010038530002006750000","control_train_day":"20300303","start_train_date":"20140123","seat_feature":"W01020","yp_ex":"101020","train_seat_feature":"0","seat_types":"112","location_code":"H1","from_station_no":"01","to_station_no":"04","control_day":24,"sale_time":"1500","is_support_card":"0","gg_num":"--","gr_num":"--","qt_num":"--","rw_num":"--","rz_num":"无","tz_num":"--","wz_num":"无","yb_num":"--","yw_num":"--","yz_num":"无","ze_num":"--","zy_num":"--","swz_num":"--"}
    public class TicketInfo
    {
        public string train_no {get; set;}
        public string station_train_code {get; set;}
        public string start_station_telecode {get; set;}
        public string start_station_name {get; set;}
        public string end_station_telecode {get; set;}
        public string end_station_name {get; set;}
        public string from_station_telecode {get; set;}
        public string from_station_name {get; set;}
        public string to_station_telecode {get; set;}
        public string to_station_name {get; set;}
        public string start_time {get; set;}
        public string arrive_time {get; set;}
        public string day_difference {get; set;}
        public string train_class_name {get; set;}
        public string lishi {get; set;}
        public string canWebBuy {get; set;}
        public string lishiValue {get; set;}
        public string yp_info {get; set;}
        public string control_train_day {get; set;}
        public string start_train_date {get; set;}
        public string seat_feature {get; set;}
        public string yp_ex {get; set;}
        public string train_seat_feature {get; set;}
        public string seat_types {get; set;}
        public string location_code {get; set;}
        public string from_station_no {get; set;}
        public string to_station_no {get; set;}
        public string control_day {get; set;}
        public string sale_time {get; set;}
        public string is_support_card {get; set;}
        public string gg_num {get; set;}
        public string gr_num { get; set; }
        public string qt_num {get; set;}
        public string rw_num { get; set; }
        public string rz_num {get; set;}
        public string tz_num { get; set; }
        public string wz_num {get; set;}
        public string yb_num { get; set; }
        public string yw_num {get; set;}
        public string yz_num { get; set; }
        public string ze_num {get; set;}
        public string zy_num { get; set; }
        public string swz_num {get; set;}
    }
}
